﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace TestXNA3.Games.TPGame
{
    public class TPGame : GameInfo
    {
        public Character Pawn;

        public override void Initialize()
        {
            base.Initialize();
            Scene.PhysicsScene.Gravity = new Vector3(0, -98f, 0);
            MainCamera.Location = new Vector3(0, 512, 0);

            string mapName = TestConfig.ParseOption("map");
            if (mapName.Length > 1)
            {
                Map.Load(mapName);
            }
            Pawn = new Character(MainCamera);
            Scene.AttachActor(Pawn);
            Pawn.Init();
        }
    }
}
